package com.artPreter.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.artPreter.pojo.Article;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 文章内容表 服务类
 * </p>
 *
 * @author jarvis
 * @since 2024-11-21
 */
public interface IArticleService extends IService<Article> {

    void add(Article article);

    void edit(Article article);

    void delete(Article article);

    IPage<Article> getPage(Integer currentPage, Integer size, Article article);

    void removeArticleRelative(Article article);

    IPage<Article> getPageNoRelative(Integer currentPage, Integer size, Article article);

    IPage<Article> getPageRelative(Integer currentPage, Integer size, Article article);

    void addToRelative(Article article);

    IPage<Article> getPageRelativeFull(Integer currentPage, Integer size, Article article);

    IPage<Article> getPageNoRelativeFull(Integer currentPage, Integer size, Article article);

    void deleteByArtistId(String artistId);

    void saveSortInArticleRelative(List<Article> articleList);
}
